import request from '@/utils/request'

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/system/examine',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/system/examine',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/system/examine/' + data,
    method: 'DELETE'
  })
}

// 查询单个审核信息
export function GetDeiltAPI(data) {
  return request({
    url: '/system/examine/' + data,
    method: 'GET'
  })
}

// 查询列表
export function GetListAPI(params) {
  return request({
    url: '/system/examine/list',
    method: 'GET',
    params
  })
}

// 获取用户
export function GetUserListAPI() {
  return request({
    url: '/system/userSaas/userThe',
    method: 'GET'
  })
}

// 获取角色下拉
export function GetRoleSelAPI(data) {
  return request({
    url: '/system/role/allList',
    method: 'GET'
  })
}
